package com.nullpointer.xchatfinal.adapter;
//package com.kiragame.xchat.adapter;
//
//import com.kiragame.xchat.fragment.ChatRoomFragment;
//import com.kiragame.xchat.fragment.ContactsFragment;
//import com.kiragame.xchat.fragment.MessageFragment;
//import com.kiragame.xchat.fragment.ProfileFragment;
//
//import android.support.v4.app.Fragment;
//import android.support.v4.app.FragmentManager;
//import android.support.v4.app.FragmentPagerAdapter;
//
//public class MainPagerAdapter extends FragmentPagerAdapter {
//	private final String[] TITLES = { "Message", "Home", "Profile" };
//	private ChatRoomFragment chatRoomFragment;
//	//private ContactsFragment contactsFragment;
//	private MessageFragment messageFragment;
//	private ProfileFragment profileFragment;
//
//	public MainPagerAdapter(FragmentManager fm) {
//		super(fm);
//		messageFragment = MessageFragment.newInstance();
//		chatRoomFragment = ChatRoomFragment.newInstance();
////		contactsFragment = ContactsFragment.newInstance();
//		profileFragment = ProfileFragment.newInstance();
//	}
//
//	public ChatRoomFragment getChatRoomFragment() {
//		return chatRoomFragment;
//	}
//
////	public ContactsFragment getContactsFragment() {
////		return contactsFragment;
////	}
//
//	public MessageFragment getMessageFragment() {
//		return messageFragment;
//	}
//
//	public ProfileFragment getProfileFragment() {
//		return profileFragment;
//	}
//
//	@Override
//	public CharSequence getPageTitle(int position) {
//		return TITLES[position];
//	}
//
//	@Override
//	public int getCount() {
//		return TITLES.length;
//	}
//
//	@Override
//	public Fragment getItem(int position) {
//		switch (position) {
//		case 0:
//			return messageFragment;
//		case 1:
//			return chatRoomFragment;
////		case 2:
////			return contactsFragment;
//		case 2:
//			return profileFragment;
//		default:
//			break;
//		}
//		return chatRoomFragment;
//	}
//}
